import service from "@/utils/axios.js"
// post发送数据
export let postdata = (url, data) => {
    return new Promise((resolve, reject) => {
        service.request({
            url,
            method: "post",
            data
        }).then((ok) => {
            resolve(ok)
        }).catch((err) => {
            reject(err)
        })
    })
}